package Interface;

public class Test {
    public void m1(Runner runner){
        runner.start();

    }
    public void m2(Runner runnner){
        runnner.stop();
    }

    public void m3(Swimmer swimmer){
        swimmer.swim();
    }

    public static void main(String[] args) {
        Test t = new Test();
        Man m = new Man();
        /*System.out.println(m.eat());
        System.out.println(m.run());
        System.out.println(m.swim());
        System.out.println(m.start());
        System.out.println(m.stop());*/
        /*m.run();
        m.start();
        m.stop();
        m.swim()*/
        t.m1(m);
        t.m2(m);
        t.m3(m);
    }
}
